import requests

from app import Local_UrL


class LoginAPI:
    def __init__(self):
        self.url_login=Local_UrL+"/api/auth/login"
        self.url_verify=Local_UrL+"/verifycode?noPrefix=true"

    #登录接口
    def login(self,session,login_data):
        return session.post(self.url_login,data=login_data)

   # 获取验证码接口
    def get_verify_code(self, session):
            return session.get(self.url_verify)